﻿<UserControl 
    x:Class="WGM_Silverlight.Controls.NetworkInfo"
    xmlns:localcontrols="clr-namespace:WGM_Silverlight.Controls"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    
    Margin="5">
    <Grid x:Name="LayoutRoot" Background="Black">
        <Border Margin="5"  CornerRadius="5"  BorderBrush="Transparent" >
            <Border.Background>
                <LinearGradientBrush StartPoint="0,1" EndPoint="1,0">
                    <GradientStop Color="#FF0099FF" Offset="0.8"/>
                    <GradientStop Color="LimeGreen" Offset="1" x:Name="_networkColour"/>
                </LinearGradientBrush>
            </Border.Background>

            <StackPanel Margin="5" >
                <TextBlock Name="_networkNameTb" FontFamily="Verdana" FontSize="16" Width="300" ToolTipService.ToolTip="{Binding ElementName=_networkNameTb, Path=Text}"  Foreground="White" />
                <TextBlock Name="_networkDescTb" FontFamily="Verdana" FontSize="10" FontStyle="Italic" Width="300" ToolTipService.ToolTip="{Binding ElementName=_networkDescTb, Path=Text}" Foreground="White"/>

                <Rectangle HorizontalAlignment="Stretch"  Height="1.5">
                    <Rectangle.Fill>
                        <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                            <GradientStop Color="Transparent" Offset="0"/>
                            <GradientStop Color="White" Offset="0.5"/>
                            <GradientStop Color="Transparent" Offset="1"/>
                        </LinearGradientBrush>
                    </Rectangle.Fill>
                </Rectangle>
                <StackPanel Orientation="Horizontal">
                    <TextBlock FontFamily="Verdana" FontSize="10"  Text="Created By " Foreground="White"  />
                    <TextBlock FontFamily="Verdana" Name="_networkCreatorTb" FontSize="10" MaxWidth="100" Foreground="White" />
                    <TextBlock FontFamily="Verdana" FontSize="10"  Text=" - Member Count: " Foreground="White"  />
                    <TextBlock FontFamily="Verdana" Name="_networkMemberCountTb" FontSize="10" MaxWidth="100"  Foreground="White"  />

                </StackPanel>
                <Rectangle HorizontalAlignment="Stretch"  Height="1.5">
                    <Rectangle.Fill>
                        <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                            <GradientStop Color="Transparent" Offset="0"/>
                            <GradientStop Color="White" Offset="0.5"/>
                            <GradientStop Color="Transparent" Offset="1"/>
                        </LinearGradientBrush>
                    </Rectangle.Fill>
                </Rectangle>
                <Grid Width="300">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition/>
                        <ColumnDefinition Width="95"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Name="_networkPasswordPromtTb" FontSize="10" Text="Enter Password:"  Foreground="White" FontFamily="Verdana"/>
                    <PasswordBox Name="_networkPasswordTb" FontSize="10" FontFamily="Verdana" HorizontalAlignment="Stretch" Grid.ColumnSpan="2"/>
                    <localcontrols:CategoryButton Grid.Column="2" Cursor="Hand"  Name="_enterNetworkBtn" HorizontalAlignment="Stretch" DisplayText="Enter Network" Width="90" Height="20" Foreground="White" TransitionColor="LimeGreen" DisplayBackground="#FF0099FF" />
                </Grid>                
                <TextBlock Name="_networkStatusMessageTb" HorizontalAlignment="Right" Foreground="White" FontFamily="Verdana" FontSize="10"   TextWrapping="Wrap"/>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
